<modalbox:modalIncludes />
<div id="listaDeGuias" class="dialog">
	<h3 class="subtitulo"><g:message code="Guias de Tr&aacute;fego da DPG" /></h3>
	<table cellpadding="2" cellspacing="0" class="tabelaAzul">
		<g:if test="${listaGuiasDeTrafego.size == 0}">
				<tr>
					<td><g:message code="Nenhuma guia de tr&aacute;fego cadastrada"  /></td>
				
				</tr>
		</g:if>
		<g:else>
			<thead>
				<tr>
					<th class="cabecalhoTabela"><g:message code="N&uacute;mero da Guia" /></th>
					<th  class="cabecalhoTabela"><g:message code="A&ccedil;&otilde;es" /></th>
					<th  class="cabecalhoTabela"></th>
				</tr>
			</thead>
			<tbody>
				<g:each in="${listaGuiasDeTrafego}" status="i" var="guiaAtual">
						<g:if test="${ i % 2 == 0 }">
				            	<tr>                        	 	                        
			            </g:if>
			            <g:else>
			                	<tr class="linhaAzulClara">
						</g:else>
						<td>
							<modalbox:createLink action="exibirGuia" id="${guiaAtual.id}" title="Guia de Tr&aacute;fego" width="400">
		        				${fieldValue(bean: guiaAtual, field: "numeroDaGuia")}
		    				</modalbox:createLink>
						</td>
						<td>
							<g:link class="linkEdit" action="editarGuiaId" id="${guiaAtual.id}">
								<g:message code="editar"/>
							</g:link>
						</td>
							
						<td>
							<g:link class="linkDelete" action="removerGuiaId" id="${guiaAtual.id}" onclick="return confirmarDeletarGuia()">
								<g:message code="remover"/>
							</g:link>
						</td>
					</g:each>
			</tbody>
		</g:else>
	</table>
</div>